PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-07-09 10:22:03.379147+00:00 (UTC)
In US/Central Time, this is 2024-07-09 05:22:03.379147-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/9302c6a5b3209b6a16f149e28c7ce324f39aa03421c0cfc146f6753f2b11dd2e.png
We are just generating a random time serie here.
../../_images/ca0d241c3759a0fdde10ab2bccc05316a56d77b516692cd394edf7a2905d8414.png
../../_images/5a84ff5b86f56d23112c6472f6431ef6133188afe709564babc8d50ffb3c9146.png